<%@ page import="com.plan.ProjectExecutePlan" %>


<div class="splitcontentleft">
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'system', 'error')} ">
		<label for="system">
			<g:message code="projectExecutePlan.system.label" default="System" />
			
		</label>
		<g:select id="system" name="system" from="${com.plan.Params.findAllByParmType('system')}" 
			optionKey="name" required="" value="${projectExecutePlanInstance?.system}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'systemName', 'error')} ">
		<label for="systemName">
			<g:message code="projectExecutePlan.systemName.label" default="System Name" />
		</label>
		<g:textField name="systemName" maxlength="50" value="${projectExecutePlanInstance?.systemName}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'subject', 'error')} ">
		<label for="subject">
			<g:message code="projectExecutePlan.subject.label" default="Subject" />
			
		</label>
		<g:select id="subject" name="subject" from="${com.plan.Params.findAllByParmType('subject')}" 
			optionKey="sn"  value="${projectExecutePlanInstance?.subject}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'preEnvironment', 'error')} ">
		<label for="preEnvironment">
			<g:message code="projectExecutePlan.preEnvironment.label" default="Pre Environment" />
			
		</label>
		<g:textField name="preEnvironment" maxlength="100" value="${projectExecutePlanInstance?.preEnvironment}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'preMaterial', 'error')} ">
		<label for="preMaterial">
			<g:message code="projectExecutePlan.preMaterial.label" default="Pre Material" />
			
		</label>
		<g:textField name="preMaterial" maxlength="100" value="${projectExecutePlanInstance?.preMaterial}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'prePeople', 'error')} ">
		<label for="prePeople">
			<g:message code="projectExecutePlan.prePeople.label" default="Pre People" />
			
		</label>
		<g:textField name="prePeople" maxlength="100" value="${projectExecutePlanInstance?.prePeople}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'preTechnology', 'error')} ">
		<label for="preTechnology">
			<g:message code="projectExecutePlan.preTechnology.label" default="Pre Technology" />
			
		</label>
		<g:textField name="preTechnology" maxlength="100" value="${projectExecutePlanInstance?.preTechnology}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'quantitiesName', 'error')} ">
		<label for="quantitiesName">
			<g:message code="projectExecutePlan.quantitiesName.label" default="Quantities Name" />
			
		</label>
		<g:select id="quantitiesName" name="quantitiesName" from="${com.plan.QuantitiesInfo.findAll()}" 
			optionKey="name"  value="${projectExecutePlanInstance?.quantitiesName}" class="many-to-one" style="width:170px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'spec', 'error')} ">
		<label for="spec">
			<g:message code="projectExecutePlan.spec.label" default="Spec" />
			
		</label>
		<g:textField name="spec" maxlength="100" value="${projectExecutePlanInstance?.spec}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'unit', 'error')} ">
		<label for="unit">
			<g:message code="projectExecutePlan.unit.label" default="Unit" />
			
		</label>
	<g:select id="unit" name="unit" from="${com.plan.Params.findAllByParmType('unit')}" 
			optionKey="name"  value="${projectExecutePlanInstance?.unit}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'sum', 'error')} ">
		<label for="sum">
			<g:message code="projectExecutePlan.sum.label" default="Sum" />
			
		</label>
		<g:field type="number" name="sum" value="${fieldValue(bean: projectExecutePlanInstance, field: 'sum')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'finishedSum', 'error')} ">
		<label for="finishedSum">
			<g:message code="projectExecutePlan.finishedSum.label" default="Finished Sum" />
			
		</label>
		<g:field type="number" name="finishedSum" value="${fieldValue(bean: projectExecutePlanInstance, field: 'finishedSum')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'finishedRate', 'error')} ">
		<label for="finishedRate">
			<g:message code="projectExecutePlan.finishedRate.label" default="Finished Rate" />
			
		</label>
		<g:field type="number" name="finishedRate" value="${fieldValue(bean: projectExecutePlanInstance, field: 'finishedRate')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'planDate', 'error')} ">
		<label for="planDate">
			<g:message code="projectExecutePlan.planDate.label" default="Plan Date" />
			
		</label>
		<g:field type="number" name="planDate" value="${fieldValue(bean: projectExecutePlanInstance, field: 'planDate')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'planStartDate', 'error')} ">
		<label for="planStartDate">
			<g:message code="projectExecutePlan.planStartDate.label" default="Plan Start Date" />
			
		</label>
		<g:datePicker name="planStartDate" precision="day" year="2000..2020" value="${projectExecutePlanInstance?.planStartDate}" default="none" noSelection="['': '']" />
	</div>
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'planEndDate', 'error')} ">
		<label for="planEndDate">
			<g:message code="projectExecutePlan.planEndDate.label" default="Plan End Date" />
			
		</label>
		<g:datePicker name="planEndDate" precision="day" value="${projectExecutePlanInstance?.planEndDate}" default="none" noSelection="['': '']" />
	</div>
</div>

<div class="splitcontentright">
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'planStatus', 'error')} ">
		<label for="planStatus">
			<g:message code="projectExecutePlan.planStatus.label" default="Plan Status" />
			
		</label>
		<g:select id="planStatus" name="planStatus" from="${com.plan.Params.findAllByParmType('status')}" 
			optionKey="sn"  value="${projectExecutePlanInstance?.planStatus}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'realDate', 'error')} ">
		<label for="realDate">
			<g:message code="projectExecutePlan.realDate.label" default="Real Date" />
			
		</label>
		<g:field type="number" name="realDate" value="${fieldValue(bean: projectExecutePlanInstance, field: 'realDate')}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'realEndDate', 'error')} ">
		<label for="realEndDate">
			<g:message code="projectExecutePlan.realEndDate.label" default="Real End Date" />
			
		</label>
		<g:datePicker name="realEndDate" precision="day" year="2000..2020" value="${projectExecutePlanInstance?.realEndDate}" default="none" noSelection="['': '']" />
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'realResult', 'error')} required">
		<label for="realResult">
			<g:message code="projectExecutePlan.realResult.label" default="Real Result" />
		</label>
		<g:textField name="realResult" maxlength="50"  value="${projectExecutePlanInstance?.realResult}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'realStartDate', 'error')} ">
		<label for="realStartDate">
			<g:message code="projectExecutePlan.realStartDate.label" default="Real Start Date" />
			
		</label>
		<g:datePicker name="realStartDate" precision="day" year="2000..2020" value="${projectExecutePlanInstance?.realStartDate}" default="none" noSelection="['': '']" />
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'creater', 'error')} required">
		<label for="creater">
			<g:message code="projectExecutePlan.creater.label" default="Creater" />
			<span class="required-indicator">*</span>
		</label>
		<g:textField name="creater" maxlength="30" required="" value="${projectExecutePlanInstance?.creater}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'status', 'error')} ">
		<label for="status">
			<g:message code="projectExecutePlan.status.label" default="Status" />
			
		</label>
		<g:field type="number" name="status" max="2147483647" value="${fieldValue(bean: projectExecutePlanInstance, field: 'status')}"/>
	</div>
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'planSum', 'error')} required">
		<label for="planSum">
			<g:message code="projectExecutePlan.planSum.label" default="Plan Sum" />
			<span class="required-indicator">*</span>
		</label>
		<g:field type="number" name="planSum" required="" value="${fieldValue(bean: projectExecutePlanInstance, field: 'planSum')}"/>
	</div>
	<div class="fieldcontain ${hasErrors(bean: projectExecutePlanInstance, field: 'remark', 'error')} ">
		<label for="remark">
			<g:message code="projectExecutePlan.remark.label" default="Remark" />
			
		</label>
		<g:textArea name="remark"  value="${projectExecutePlanInstance?.remark}"/>
	</div>
</div>
